package ui.tests;

import org.testng.Assert;

/**
 * Created by Mikhail.Chub on 05/06/2014.
 */
public class CommonSteps extends BasicTest {

    public void goHomePage() {
        app.getHomePage().open();
        Assert.assertTrue(app.getHomePage().isOpened());
    }

    public void searchItem(String searchString) {
        app.getHomePage().fillSearchField(searchString);
        app.getHomePage().initiateSearch();
        Assert.assertTrue(app.getHomePage().isProductFound(searchString));
    }
}
